package cinema.v1_1.model;

public class Movie {
    private String id;
    private String name;
    private String director;
    private String actors;
    private String plot;
    private int duration;   // 分钟
    private double score;   // 0-10

    public Movie(String id, String name, String director,
                 String actors, String plot, int duration, double score) {
        this.id = id;
        this.name = name;
        this.director = director;
        this.actors = actors;
        this.plot = plot;
        this.duration = duration;
        this.score = score;
    }

    public String getId()         { return id; }
    public String getName()       { return name; }
    public String getDirector()   { return director; }
    public String getActors()     { return actors; }
    public String getPlot()       { return plot; }
    public int getDuration()      { return duration; }
    public double getScore()      { return score; }

    public void setName(String name)         { this.name = name; }
    public void setDirector(String director) { this.director = director; }
    public void setActors(String actors)     { this.actors = actors; }
    public void setPlot(String plot)         { this.plot = plot; }
    public void setDuration(int duration)    { this.duration = duration; }
    public void setScore(double score)       { this.score = score; }
}